<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html>
<html>
  <head>
    <title>工作空间</title>
    <jsp:include page="/WEB-INF/jsp/common/basic.jsp"></jsp:include>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/style/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/plugin/table/bootstrap-table.css">
  </head>

  <body class="sidebar-mini skin-red-light" style="height: auto; min-height: 100%;">
  <div class="wrapper" style="height: auto; min-height: 100%;">
  
  <!-- 头部 -->
  <jsp:include page="/WEB-INF/jsp/common/top.jsp"></jsp:include>
  
  
  <!-- 左边 -->
  <%@ include file="/WEB-INF/jsp/common/left.jsp" %>
 
 
   <!-- 内容区域 -->
  <div class="content-wrapper" style="min-height: 1126px;">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
                    标签管理
        <small>添加标签</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="#">Examples</a></li>
        <li class="active">Blank page</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
    
     <div class="row">
        <!-- right column -->
        <div class="col-md-12">
          <!-- Horizontal Form -->
          <div class="box box-info">
            <!-- form start -->
            <form action="${pageContext.request.contextPath}/admin/labels/add" method="post" enctype="multipart/form-data" class="form-horizontal" >                                  
              <input name="id" type="hidden" value="0"/>
              <div class="box-body">
                       	  
                <div class="col-md-6">
                  <div class="form-group">
                    <label for="name" class="col-sm-2 control-label">标签名称</label>
                    <div class="col-sm-10">
                      <input id="name" name="name" class="form-control" data-bv-notempty="true" placeholder="标签名称" type="text" value=""/>
                    </div>
                  </div>
                </div>
                
                <div class="col-md-6">
                  <div class="form-group">
                    <label for="name" class="col-sm-2 control-label">所属版块</label>
                    <div class="col-sm-10">
                      <select class="form-control" name="category.id" >
                      	<c:forEach items="${categorys}" var="item">
                        	<option value="${item.id}">${item.name}</option> 
                        </c:forEach>                     
                       </select>            
                    </div>
                  </div>
                </div>
                	                        
              </div>                                             
              <div class="box-footer">
                <button type="reset" class="btn btn-default btn-flat">重 置</button>
                <button type="submit" class="btn btn-success btn-flat">保 存</button>
              </div>
            </form>
           </div>
              <!-- /.box-body -->
              <!-- /.box-footer -->
          </div>
          <!-- /.box -->
        </div>
        <!--/.col (right) -->          
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  
   <!-- 底部 -->
   <jsp:include page="/WEB-INF/jsp/common/bottom.jsp"></jsp:include>
   
   <!-- 设置 -->
   <jsp:include page="/WEB-INF/jsp/common/setting.jsp"></jsp:include>
  </div>


    <!-- SlimScroll -->
    <script src="${pageContext.request.contextPath}/static/plugin/jquery-slimscroll/jquery.slimscroll.min.js"></script>
    <!-- FastClick -->
    <script src="${pageContext.request.contextPath}/static/plugin/fastclick/fastclick.js"></script>
     
  </body>
</html>